package back;

public class Sale {
    private String id;
    private String name;
    private Double amount;// 价格
    private int quantity;// 销量
    private int time;
    public void setId(String id) {
        this.id = id;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setAmount(Double amount) {
        this.amount = amount;
    }
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
    public void setTime(int time) {
        this.time = time;
    }
    public String getId() {
        return id;
    }
    public String getName() {
        return name;
    }
    public Double getAmount() {
        return amount;
    }
    public int getQuantity() {
        return quantity;
    }
    public int getTime() {
        return time;
    }
    public Object[] toArray(){
        return new Object[]{id,name,amount,quantity};
    }
}
